package com.ruoyi.system.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 自定义报警列配置对象 mr_custom_alarms
 *
 * @author lsw
 * @date 2024-01-20
 */
@Setter
@Getter
public class MrCustomAlarms extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 自定义名称 */
    @Excel(name = "自定义名称")
    private String name;

    /** 关联设备id组 */
    @Excel(name = "关联设备id组")
    private String deviceIds;

    /** 状态（0启用 1禁用） */
    @Excel(name = "状态", readConverterExp = "0=启用,1=禁用")
    private String status;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("deviceIds", getDeviceIds())
                .append("status", getStatus())
                .toString();
    }
}
